package com.taiji.dicom4platform.common.security.model;

import com.taiji.dicom4platform.common.model.entity.SysUser;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;

/**
 * 登录用户详细信息
 *
 * @Description
 * @Author fanxl
 * @Date 2021/5/19
 **/
@Data
public class CommonUserDetails extends SysUser implements UserDetails {

     @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return null;
    }


    @Override
    public boolean isAccountNonExpired() {
        return false;
    }

    @Override
    public boolean isAccountNonLocked() {
        return false;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        return false;
    }

    @Override
    public boolean isEnabled() {
        return false;
    }
}
